package com.derbysoft.synxisadapter.webservice.impl;

import com.derbysoft.synxisadapter.commons.dto.synxis.OTAHotelResRQ;
import com.derbysoft.synxisadapter.commons.dto.synxis.OTAHotelResRS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.ws.client.core.WebServiceTemplate;

@Component("reservationWebService")
public class ReservationWebServiceImpl extends AbstractReservationWebService<OTAHotelResRQ, OTAHotelResRS> {

    @Autowired
    @Qualifier("bookWebServiceTemplate")
    protected WebServiceTemplate bookWebServiceTemplate;

    @Override
    protected WebServiceTemplate getWebServiceTemplate() {
        return bookWebServiceTemplate;
    }

    public void setBookWebServiceTemplate(WebServiceTemplate bookWebServiceTemplate) {
        this.bookWebServiceTemplate = bookWebServiceTemplate;
    }
}
